//
//  JXLBaseViewController.h
//  piggy
//
//  Created by 宋质彬 on 2018/3/5.
//  Copyright © 2018年 宋质彬. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum{
    PageGobackTypeNone,
    PageGobackTypeDismiss,
    PageGobackTypePop,
    PageGobackTypeRoot
}PageGobackType;

@interface JXLBaseViewController : UIViewController

@property (nonatomic , copy) NSString *backTitle;
- (void)baseConfigBackTitle:(PageGobackType)gobackType;
- (void)baseConfig:(PageGobackType)gobackType;


- (void)showMessage:(NSString *)msg;
- (void)showLoading:(NSString *)msg;
- (void)hideLoading;

- (void)pushViewController:(UIViewController*)viewController animated:(BOOL)animated;
- (void)popViewController;
- (void)popToRootViewController;
- (void)popToViewControllerAtIndex:(NSInteger)index;
- (void)dismissViewController;
@end
